﻿using System;
using System.Xml.Linq;
using Microsoft.SharePoint;
using Sapphire.Linq.Framework;

namespace Sapphire.Linq.FieldMaps
{
    public interface IPropertyMapsContext
    {
        PropertyMap<T> Register<T>(ListQuery<T> listQuery);

        SPField GetField<T>(SPList list, string propertyName);

        XElement GetFieldRef(Type objectType, string propertyName);
    }
}